﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaxiOnline.DAL.Abstract;

namespace TaxiOnline.DAL.Models
{
    public class User: Entity
    {
        public string Login { get; set; }
        public string Password { get; set; }
        public string Surname { get; set; }
        public string Name { get; set; }
        public string FathersName { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public float Points { get; set; }

        public User() {
            Id = -1;
            Login = String.Empty;
            Password = String.Empty;
            Surname = String.Empty;
            Name = String.Empty;
            FathersName = String.Empty;
            Email = String.Empty;
            Phone = String.Empty;
            Points = 0;
        }

        public User(int id, string login, string password, string surname,
            string name, string fathersname,
            string email, string phone,
            float points) {
                Login = login;
                Password = password;
                Surname = surname;
                Name = name;
                FathersName = fathersname;
                Email = email;
                Phone = phone;
                Points = points;
                Id = id;
        }
    }
}
